package v1

import (
	"ginblog/api/common/v1/admin"
	"github.com/gin-gonic/gin"
	"github.com/gin-gonic/gin/binding"
)

type login struct {
	admin.LoginV1
}

func Login(c *gin.Context) {
	l := login{}
	_ = c.ShouldBindBodyWith(&l, binding.JSON)
	l.DoLogin(c)
}
